package com.kl.drs.bean.bo;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.fasterxml.jackson.annotation.JsonIgnore;


@JsonIgnoreProperties(ignoreUnknown = true)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class DrsAsynchTaskBO implements Serializable{
	
	
	public DrsAsynchTaskBO(String businessNo, String businessSerialNo,
			String taskType, String status, Date updatTime) {
		super();
		this.businessNo = businessNo;
		this.businessSerialNo = businessSerialNo;
		this.taskType = taskType;
		this.status = status;
		this.updatTime = updatTime;
	}
	// columns
		/** 
		 *主键  对应表pk_serial#字段 
		 */		
		private Integer id;
		/** 
		 * 业务识别号 
		 */		
		private String businessNo;
		/** 
		 * 业务流水号
		 */		
		private String businessSerialNo;
		
		/** 
		 * 任务类型(1上报,2对账)
		 */		
		private String taskType;
		
		/**
		 * 同步状态(1待处理,2处理中,3处理成功,4处理失败) 
		 */
		private String status;
		/**
		 * 更新时间
		 */
		private Date updatTime;
		/**
		 * 核心库对应的业务信息号
		 */
		private String contno;
		/**
		 * 双录字段
		 */
		private String crs_salechnl;
		
		//============表基本属性===========
				/**
				 * 首次创建时间
				 */
				@JsonIgnore
				private Date fcd;
				/**
				 * 首次创建人
				 */
				@JsonIgnore
				private String fcu;
				/**
				 * 最近修改时间
				 */
				@JsonIgnore
				private Date lcd;
				/**
				 * 最近修改人
				 */
				@JsonIgnore
				private String lcu;
				@Override
				public String toString() {
					return "{\"id\":\"" + id + "\",\"businessNo\":\""
							+ businessNo + "\",\"businessSerialNo\":\""
							+ businessSerialNo + "\",\"taskType\":\""
							+ taskType + "\",\"status\":\"" + status
							+ "\",\"updatTime\":\"" + updatTime
							+ "\",\"fcd\":\"" + fcd + "\",\"fcu\":\"" + fcu
							+ "\",\"lcd\":\"" + lcd + "\",\"lcu\":\"" + lcu
							+ "\"}";
				}
				
}